<!-- 引入公共部分 -->
{{extend '../common/layout.html'}}

{{block 'link'}}
<!-- 添加css链接 -->
    <link rel="stylesheet" href="/static/admin/css/tables.css">
    <!-- <link rel="icon" href="/public/image/logo.png"/> -->
    <link rel="stylesheet" href="/static/admin/css/bootstrap.min.css">

{{/block}}
{{block 'main'}}
<!-- body代码 -->
<!-- 头部代码 -->
    {{include '../common/header.html'}}
<div class=" layui-row" id="content">
    <!-- 侧边栏 -->
    {{include '../common/aside.html'}}
    <!-- 主题区域 -->
    <div class="layui-col-md10" id="right">
        <div id="nav">
            <!-- <a href="">面试管理</a> -->
            <span ><b>表格管理</b></span>
            <input type="search" id="search_input" style="height:35px;"  placeholder="输入姓名">
             <select name="findFlag" id="findFlag" onchange="fliterFlag()">
                    <option value="0" checked="checked">姓名</option>
                    <option value="1">班级</option>
                </select>
            <button class="btn" style="color: black;line-height:15px;height: 30px; background-color: rgb(36, 115, 211);color: aliceblue;" onclick="seekUsersFun()">查找</button>
        </div>
        <div class="content" style>
            <div id="right_top" >
                <button class="layui-btn layui-btn-normal" style="line-height:30px" onclick="exportFun()">导出</button>
                <select name="status" id="filter" style="transform:translateY(3px)" onchange="filterFun()">
                    <option value="所有人">所有人</option>
                    <option value="待面试">待面试</option>
                    <option value="待二面">待二面</option>
                    <option value="待三面">待三面</option>
                    <option value="已录取">已录取</option>
                    <option value="已淘汰">已淘汰</option>
                    <option value="待笔试">待笔试</option>
                </select>
                <!-- <button id="changeBtn" onclick="ChangeFunFun()">设置</button> -->
                <!-- <button class="btn layui-btn-warm" id="filter_btn" onclick="filterFun()">筛选</button> -->
                <button class="layui-btn" style="line-height:30px" onclick="location.reload();">刷新</button>
                <button id="takeMore" class="layui-btn layui-btn-warm " style="line-height:30px" onclick="openChangeAllFun()">批量设置</button>
                <div id="timeDiv">
                    <select id="filtertime_day" onclick="judjeTimeFun()"  onchange="filterDayFun()">
                        <option value="0">？</option>
                        <option value="1">1</option>
                        <option value="2">2</option>
                        <option value="3">3</option>
                        <option value="4">4</option>
                        <option value="5">5</option>
                        <option value="6">6</option>
                        <option value="7">7</option>
                        <option value="8">8</option>
                        <option value="9">9</option>
                        <option value="10">10</option>
                        <option value="11">11</option>
                        <option value="12">12</option>
                        <option value="13">13</option>
                        <option value="14">14</option>
                        <option value="15">15</option>
                        <option value="16">16</option>
                        <option value="17">17</option>
                        <option value="18">18</option>
                        <option value="19">19</option>
                        <option value="20">20</option>
                        <option value="21">21</option>
                        <option value="22">22</option>
                        <option value="23">23</option>
                        <option value="24">24</option>
                        <option value="25">25</option>
                        <option value="26">26</option>
                        <option value="27">27</option>
                        <option value="28">28</option>
                        <option value="29">29</option>
                        <option value="30">30</option>
                        <option value="31">31</option>
                    </select>
                    <span id="day_span">号</span>
                    <select id="filtertime_time" onclick="judjeTimeFun()"  onchange="filterHourFun()">
                        <!-- <option value="0">？</option>
                        <option value="10">10</option>
                        <option value="11">11</option>
                        <option value="12">12</option>
                        <option value="13">13</option>
                        <option value="14">14</option>
                        <option value="15">15</option>
                        <option value="17">17</option>
                        <option value="18">18</option>
                        <option value="19">19</option>
                        <option value="20">20</option>
                        <option value="21">21</option>
                        <option value="22">22</option> -->
                    </select>
                    <span id="hour_span">时</span>
                    <select id="filtertime_minute" onclick="judjeTimeFun()" style=" position: relative;" onchange="filterMinuteFun()">
                        <!-- <option value="0">？</option>
                        <option value="00">00</option>
                        <option value="05">05</option>
                        <option value="10">10</option>
                        <option value="15">15</option>
                        <option value="20">20</option>
                        <option value="25">25</option>
                        <option value="30">30</option>
                        <option value="35">35</option>
                        <option value="40">40</option>
                        <option value="45">45</option>
                        <option value="50">50</option>
                        <option value="55">55</option> -->
                        
                    </select>
                    <span id="minute_span">分</span>
                    <button id="submitTimeBtn" style="line-height:30px" onclick="filterTimeFun()">确认</button>
                    
                </div>
                <select id="filterPlace" onclick="onFilterPlaceFun()" onchange="filterPlaceFun()">
                    <option value="0">？</option>
                    <option value="0#608">0#608</option>
                    <option value="0#609">0#609</option>
                    <option value="0#611">0#611</option>
                    <option value="0#615">0#615</option>
                </select>
            </div>
            <div id="right_wrap" style="height:400px;max-height: 400px;">
                <table lay-even class="layui-table" style="height:auto;;"> 
                    <thead>
                        <tr id='trTitle'>
                          <td>序号</td>
                          <td>姓名</td>
                          <td>班级</td>
                          <td>内容</td>
                          <td>时间(可编辑)</td>
                          <td>地点(可编辑)</td>
                          <td>面试官(可编辑)</td>
                        </tr> 
                    </thead>
                    <tbody id="tybody" style="height:auto">
                        
                    </tbody>
                    
                </table>
                
            </div>
            
        </div>
    </div>
</div>

<div id="successShow">
    <div id="successCover"></div>
    <span id="success_span">已修改</span>
</div>
<div id="changeWindow">
    <h2 class="layui-bg-green">批量设置</h2>
    <span id="change_cancleA"  onclick="closeChangeWindowFun()" class="layui-icon layui-icon-close" ></span>
    <div style="padding:20px 0 20px 10%;width: 90%;">
         <b>面试者类型：</b>
        <select name="status" id="filter_then">
            <option value="待面试">待面试</option>
            <option value="待二面">待二面</option>
            <option value="待三面">待三面</option>
            <option value="待笔试">待笔试</option>
        </select><br><br>
        <b>面试地点：</b><br><br>
        <input type="search" autocomplete="off" placeholder="示例：0#一" id="times" style="width: 85%;line-height:20px;margin: 0;"><br>
        <br><b> 面试时间：</b><br><br>
        <input type="search" autocomplete="off" placeholder="示例：1号12:00" id="places" style="width: 85%;line-height:20px;margin: 0;">

    </div>
    <button class="layui-btn layui-btn-danger" id="change_cancel" onclick="closeChangeWindowFun()">取消</button>
    <button class="layui-btn layui-btn-normal" id="change_ok" onclick="changeOkFun()">确定</button>
</div>
<div id="cover_div" onclick="closeFun()"></div>
<div id="allotWin">
    <fieldset class="layui-elem-field layui-field-title" style="margin-top: 30px;">
        <legend style="text-align: left;">
            <h3 style="text-align: left;">编辑面试官</h3>
            <span id="closeAllotWinSpan" onclick="closeFun()" class="layui-icon layui-icon-close" ></span>
        </legend>
      </fieldset>
      <div class="layui-btn-container">
          <!-- <button type="button" class="layui-btn" lay-demotransferactive="reload">重载实例</button> -->
        </div>
        
        <div id="test7" class="demo-transfer" style="margin-bottom: 20px;"></div>

        <button type="button" class="layui-btn layui-btn-danger" onclick="closeFun()" style="margin-right: 20px;">取消</button>
        <button type="button" class="layui-btn" lay-demotransferactive="getData" style="margin-left: 20px;">确认</button>
       <h2 style="color:red"></h2>
</div>
{{/block}}
    
    



{{block 'script'}}
<!-- 添加js代码 -->
    <script src="/static/layui-v2.6.8/layui/layui.js"></script>
    <script src="/static/admin/js/tables.js"></script>
{{/block }}
